package com.anycc.cloud.core.service;

import com.anycc.cloud.core.entity.OrgType;

import java.util.List;

/**
 * org type service
 */
public interface OrgTypeService {
    /**
     * find all orgType order by name
     *
     * @return list
     */
    List<OrgType> findAllOrderByNameAsc();

    /**
     * create a new orgType
     *
     * @param orgType orgType
     * @return OrgType
     */
    OrgType create(OrgType orgType);

    /**
     * update orgType
     *
     * @param orgType orgType
     * @return OrgType
     */
    OrgType update(OrgType orgType);

    /**
     * delete oryType by id
     *
     * @param id orgType id
     */
    void delete(String id);
}
